package com.bytedance.ttnet.utils;

import com.ss.android.common.applog.AppLog;

import org.json.JSONObject;

import java.net.URI;

public final class a {
    private static a$a a;
    private static volatile boolean b;

    static {
        a = null;
        b = true;
    }

    public static void a(boolean arg0) {
        b = arg0;
    }

    public static void a(String arg9, String arg10, int arg11, JSONObject arg12) {
        if (a != null) {
            try {
                AppLog.onEvent("umeng", arg9, arg10, ((long) arg11), 0, arg12);
            } catch (Throwable v0) {
                v0.printStackTrace();
            }
        }
    }

    public static String a(String arg4) {
        String v0 = null;
        if (b) {
            try {
                if (!new URI(arg4).getHost().endsWith(android.support.design.a.z())) {
                    return v0;
                }

                v0 = String.valueOf(System.currentTimeMillis());
            } catch (Throwable v1) {
            }
        }

        return v0;
    }

    public static void a(a$a arg0) {
        a = arg0;
    }

    public static final class a$a {
        public a$a() {

        }
    }
}

